Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci,makefile): add a new release Makefile target to pass LDFLAGS to goreleaser #25

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

FedeDP
Copy link
Collaborator

@FedeDP FedeDP commented Sep 27, 2023

What type of PR is this?

/kind bug

Any specific area of the project related to this PR?

/area build

What this PR does / why we need it:

We were not passing LDFLAGS to goreleaser, so driverkit "latest" builder images were being used.
Added a new Makefile release target that passes LDFLAGS to goreleaser.
I avoided using ldflags goreleaser config key because i wanted a single place where driverkit version was declared, to easily bump it (through bump-driverkit makefile target).

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

@poiana
Copy link

poiana commented Sep 27, 2023

@FedeDP: The label(s) kind/bug, area/build cannot be applied, because the repository doesn't have them.

In response to this:

What type of PR is this?

/kind bug

Any specific area of the project related to this PR?

/area build

What this PR does / why we need it:

We were not passing LDFLAGS to goreleaser, so driverkit "latest" builder images were being used.
Added a new Makefile release target that passes LDFLAGS to goreleaser.
I avoided using ldflags goreleaser config key because i wanted a single place where driverkit version was declared, to easily bump it (through bump-driverkit makefile target).

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@poiana
Copy link

poiana commented Sep 27, 2023

There is not a label identifying the kind of this PR.
Please specify it either using /kind <group> or manually from the side menu.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@FedeDP
Copy link
Collaborator Author

FedeDP commented Sep 27, 2023

/cc @maxgio92

@poiana poiana added the size/S label Sep 27, 2023
Copy link
Member

@maxgio92 maxgio92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@poiana
Copy link

poiana commented Sep 27, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FedeDP, maxgio92

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 3fd73cb into main Sep 27, 2023
3 checks passed
@poiana poiana deleted the fix/release_ldflags branch September 27, 2023 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants